package com.dapeng.www.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.dapeng.www.myapplication.viewpagefragementtable.ViewPageFragementTableActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.tv_1).setOnClickListener(this);
        findViewById(R.id.tv_2).setOnClickListener(this);
        findViewById(R.id.tv_3).setOnClickListener(this);
        findViewById(R.id.tv_4).setOnClickListener(this);
        findViewById(R.id.tv_5).setOnClickListener(this);



    }

    @Override
    public void onClick(View view) {
        Intent intent;
        switch (view.getId()){
            case R.id.tv_1:

                break;
            case R.id.tv_2:
                intent = new Intent(MainActivity.this,RadioButtonTableActivity.class);
                startActivity(intent);

                break;
            case R.id.tv_3:

                intent = new Intent(MainActivity.this,ViewPageFragementTableActivity.class);
                startActivity(intent);
                break;
            case R.id.tv_4:
                intent = new Intent(MainActivity.this,TablelayoutActivity.class);
                startActivity(intent);
                break;
            case R.id.tv_5:


                break;
        }
    }
}
